<?php

class images extends cls_parent {
   
    private $tbl2 = "images";

    public function getImages($i) {
        $sql = "SELECT * FROM images where pro_id = $i";
        return $this->db->fetchAll($sql);
    }
    
    public function addImages($data = array()) {
        $this->db->prepareInsert($data);
        $this->db->insert($this->tbl2);
    }

}

